package cn.edu.sdjzu.xg23.kcsj01_backend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LiteratureDatabaseAsPaper {
    private Long id;
    private LiteratureDatabase literatureDatabase;
    @JsonIgnore
    private Paper paper;
    public  LiteratureDatabaseAsPaper(LiteratureDatabase literatureDatabase, Paper paper) {

        this.literatureDatabase = literatureDatabase;
        this.paper = paper;
    }
}
